Skip to content

feat(python): ADR-117 §11.3 v2 witness hash + verifying PyPI release gate (wifi-densepose 2.0.0) - #2524

Merged
ruvnet merged 2 commits into
mainfrom
feat/pip-witness-v2-2.0.0
Nov 11, 2026
Merged

ruvnet merged 2 commits into
mainfrom
feat/pip-witness-v2-2.0.0

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 11, 2026

Copy link
Copy Markdown
Owner

What

Closes the ADR-117 §11.3 release gate so wifi-densepose==2.0.0 / ruview==2.0.0 can ship to PyPI. Before this PR, pip-release.yml had never succeeded end to end.

1. v2 witness over the Rust pipeline

  • python/src/bindings/vitals.rs binds CsiVitalPreprocessor, stage 1 of the vitals pipeline. Without it, the EMA residuals would have been computed in Python.
  • python/wifi_densepose/witness.py (also exposed as wifi_densepose.verify_witness, per ADR-184 criterion 10):
    • Feeds antenna 0 of the 1,000-frame sample_csi_data.json through CsiVitalPreprocessor, then BreathingExtractor, then HeartRateExtractor (all esp32_default()).
    • Rounds the residuals and estimates to 6 decimals, packs them as little-endian float64, and takes the SHA-256. The byte layout is documented in the module.
    • Result: 501 heart-rate estimates and 0 breathing estimates. The breathing stage needs 10 s of history, and at the 10 s mark the signal is out of band.
  • archive/v1/data/proof/expected_features_v2.sha256 = 92d867f2ed7ec9a96b4466b26903d81ff544b6d95dfeb71bb79d14ac633cd3cc
    • Produced by the new witness-v2 job in python-ci, run 42955822833. The job uses Rust 1.89 and the release wheel, runs the witness twice, and asserts both hashes match. The value committed here is that job's uploaded artifact, unchanged.
    • Reproduced locally (Rust 1.89, Linux x86_64): same hash on both runs.
    • The cibuildwheel manylinux2014_x86_64 wheel from the branch's pip-release run also gives VERDICT: PASS.
    • Provenance is recorded in ADR-028 §5.3.

2. Gates that verify the hash, not just check the file exists

  • python-ci.yml witness-v2: on every python/** PR, the committed hash must equal a fresh run. tests/test_witness.py also covers determinism and the committed hash in the parity job.
  • pip-release.yml publish-v2: installs the exact manylinux x86_64 wheel it is about to publish and runs --expected against the committed file. This replaces the old check, which only tested that the file was non-empty (test -s).

3. Pre-existing pip-release bugs found by dispatching the workflow on this branch

  • macOS x86_64: delocate rejected the wheel. cibuildwheel's default 10.9 target is below rustc's 10.12 minimum. Fixed by setting MACOSX_DEPLOYMENT_TARGET per matrix entry.
  • macos-14 runner label: no longer supported ("configuration 'macos-14-arm64-us-default' is not supported"). Switched to macos-15.
  • Branch dispatch run 42958806181 (publish_to=testpypi):
    • All 5 wheel builds, the sdist and the ruview build: success.
    • The witness gate inside the publish job: success.
    • Only the TestPyPI upload failed, as expected: TESTPYPI_API_TOKEN is not set.

4. SEO (ADR-356)

  • Homepage = https://ruv.io for both packages.
  • The description now says only what the wheel actually does.
  • Both READMEs now have a quickstart that runs as written (tested against the built wheel).
  • The features list separates what runs in the wheel from what needs the [client] extra and a sensing-server.
  • The crate version is now 2.0.0 (was 2.0.0-alpha.1), so __rust_version__ no longer says alpha.

Checks

  • scripts/check_fix_markers.py: all 27 present. The id-token permission was not added; token auth is unchanged.
  • csi-data-policy-check.sh: OK.
  • Main was green at 66b8dcf.

🤖 Generated with claude-flow

…+ verifying release gate

- bind CsiVitalPreprocessor (stage 1 of the vitals pipeline)
- wifi_densepose.witness: deterministic SHA-256 of the Rust pipeline output
  over archive/v1/data/proof/sample_csi_data.json; verify_witness() export
- python-ci: witness-v2 job builds the release wheel (Rust 1.89), runs the
  witness twice, asserts equality, uploads the hash, checks the committed file
- pip-release: gate now verifies the committed hash against the built
  manylinux x86_64 wheel, not just that the file is non-empty
- SEO (ADR-356): Homepage https://ruv.io, truthful description, runnable
  README quickstarts; crate version 2.0.0

Co-Authored-By: claude-flow <ruv@ruv.net>
…cOS wheel builds

- expected_features_v2.sha256 = witness-v2 artifact of python-ci run
  42955822833 (Rust 1.89, Linux x86_64); provenance in ADR-028 §5.3
- pip-release: MACOSX_DEPLOYMENT_TARGET 10.12/11.0 so delocate accepts the
  rustc-built .so; macos-14 runner label is unsupported, use macos-15

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet
ruvnet merged commit dea1cc2 into main Nov 11, 2026
59 of 60 checks passed
github-actions Bot pushed a commit to pfatemi7/RuView that referenced this pull request Nov 11, 2026
…itness-v2-2.0.0

feat(python): ADR-117 §11.3 v2 witness hash + verifying PyPI release gate (wifi-densepose 2.0.0) dea1cc2
github-actions Bot pushed a commit to zeeshanzzz788/RuView that referenced this pull request Nov 11, 2026
…itness-v2-2.0.0

feat(python): ADR-117 §11.3 v2 witness hash + verifying PyPI release gate (wifi-densepose 2.0.0) dea1cc2
github-actions Bot pushed a commit to autosolutionsai-didac/wifi-densepose that referenced this pull request Nov 11, 2026
…itness-v2-2.0.0

feat(python): ADR-117 §11.3 v2 witness hash + verifying PyPI release gate (wifi-densepose 2.0.0) dea1cc2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant